package pipe.reader.writer.thread;

import pipe.reader.writer.ReadData;

import java.io.PipedReader;

public class ThreadReader extends Thread {
    private ReadData readData;
    private PipedReader reader;

    public ThreadReader(ReadData readData, PipedReader reader) {
        super();
        this.readData = readData;
        this.reader = reader;
    }

    @Override
    public void run() {
        readData.readMethod(reader);
    }
}
